package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 post
 *
 * @author ruoyi
 * @date 2025-08-04
 */
public class Post extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 发布人 */
    @Excel(name = "发布人")
    private Long userId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String title;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String titlepic;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String content;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer sharenum;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String path;

    /** 0 图文 1分享 */
    @Excel(name = "0 图文 1分享")
    private Integer type;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long postClassId;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long shareId;

    /** 1开放，0仅自己可见 */
    @Excel(name = "1开放，0仅自己可见")
    private Integer isopen;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setTitlepic(String titlepic)
    {
        this.titlepic = titlepic;
    }

    public String getTitlepic()
    {
        return titlepic;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setSharenum(Integer sharenum)
    {
        this.sharenum = sharenum;
    }

    public Integer getSharenum()
    {
        return sharenum;
    }

    public void setPath(String path)
    {
        this.path = path;
    }

    public String getPath()
    {
        return path;
    }

    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }

    public void setPostClassId(Long postClassId)
    {
        this.postClassId = postClassId;
    }

    public Long getPostClassId()
    {
        return postClassId;
    }

    public void setShareId(Long shareId)
    {
        this.shareId = shareId;
    }

    public Long getShareId()
    {
        return shareId;
    }

    public void setIsopen(Integer isopen)
    {
        this.isopen = isopen;
    }

    public Integer getIsopen()
    {
        return isopen;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("title", getTitle())
            .append("titlepic", getTitlepic())
            .append("content", getContent())
            .append("sharenum", getSharenum())
            .append("path", getPath())
            .append("type", getType())
            .append("createTime", getCreateTime())
            .append("postClassId", getPostClassId())
            .append("shareId", getShareId())
            .append("isopen", getIsopen())
            .toString();
    }
}
